/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.farmcode.api.types;

import java.io.Serializable;

/**
 *
 * @author oiprado
 */
public class Type implements Serializable{
  private Integer code;
  private String name;
  private String nativeType;
  private String defaultValue;

  public Type() {
  }

  public Type(Integer code, String name, String nativeType, String defaultValue) {
    this.code = code;
    this.name = name;
    this.nativeType = nativeType;
    this.defaultValue = defaultValue;
  }

  /**
   * @return the name
   */
  public String getName() {
    return name;
  }

  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }

  /**
   * @return the nativeType
   */
  public String getNativeType() {
    return nativeType;
  }

  /**
   * @param nativeType the nativeType to set
   */
  public void setNativeType(String nativeType) {
    this.nativeType = nativeType;
  }

  /**
   * @return the defaultValue
   */
  public String getDefaultValue() {
    return defaultValue;
  }

  /**
   * @param defaultValue the defaultValue to set
   */
  public void setDefaultValue(String defaultValue) {
    this.defaultValue = defaultValue;
  }

  /**
   * @return the code
   */
  public Integer getCode() {
    return code;
  }

  /**
   * @param code the code to set
   */
  public void setCode(Integer code) {
    this.code = code;
  }

  @Override
  public String toString() {
    return "[Code="+code+",Name="+name+",Default Value="+defaultValue+"]";
  }
  
  
}
